package mest.dao.hank;

import mest.entity.plan_productjob_saleout;
import mest.entity.plan_productjob_saleout_record;
import mest.entity.plan_productjob_takematerial;
import mest.entity.plan_productjob_takematerial_record;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface plan_productjob_saleoutMapper {
    int deleteByPrimaryKey(Integer id,@Param("theirDb")String theirDb);

    int insert(plan_productjob_saleout record,@Param("theirDb")String theirDb);

    int insertSelective(plan_productjob_saleout record,@Param("theirDb")String theirDb);

    plan_productjob_saleout selectByPrimaryKey(Integer id,@Param("theirDb")String theirDb);

    int updateByPrimaryKeySelective(plan_productjob_saleout record,@Param("theirDb")String theirDb);

    int updateByPrimaryKey(plan_productjob_saleout record ,@Param("theirDb")String theirDb);

    int intsertList(@Param("plan_productjob_saleoutlist") List<plan_productjob_saleout> record ,@Param("theirDb")String theirDb);

    //通过ptid查询
    List<plan_productjob_saleout>  queryBypsId (@Param("index") Integer index,
                                               @Param("pageSize") Integer pageSize,
                                               @Param("psId") Integer psId ,@Param("theirDb")String theirDb);

    /**
     * 2.model 总行数查询
     * @param psId
     * @return
     */
    int findCount(Integer psId,String theirDb);



    List<Map> queryAllModel_byId  (@Param("index") Integer index,
                                   @Param("pageSize") Integer pageSize,
                                   @Param("psId") Integer psId,@Param("theirDb")String theirDb);

    int updateByone(@Param("theirDb") String theirDb,@Param("list") List<plan_productjob_saleout_record> record);

}
